<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="paymentsSalaryList.title"/></title>

    <meta name="heading" content="<fmt:message key='paymentsSalaryList.heading'/>"/>
    <meta name="menu" content="RoleAdminPurchase"/>
</head>
<div id="help">
    <h2>
        <a href="<c:url value='helpPaymentsSalaryList.html?decorate=false'/>"
           title="<fmt:message key="help.pSL"/>"
           onclick="Modalbox.show(this.href, {title: this.title, width: 600}); return false;">
               <fmt:message key="help"/>
        </a>
    </h2>
</div>

<c:set var="buttons">
    <c:if test="${canAdd}">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editPaymentsSalary.html"/>'"
        value="<fmt:message key="button.add"/>"/>
    </c:if>
    <input type="button" onclick="location.href='<c:url value="/backToEmployeesSalary.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<s:set name="paymentsSalaries" value="paymentsSalaries" scope="request"/>
<display:table name="paymentsSalaries" class="table" requestURI="" id="paymentsSalaryList" export="true" pagesize="25">
    <display:column titleKey="edit">
        <a href="<c:url value="/editPaymentsSalary.html?id=${paymentsSalaryList.id}"/>"><img src="<c:url value="/images/edit.png" />" alt="Edit" /></a>
    </display:column>
    <display:column property="datePay" titleKey="paymentsSalary.datePay"/>
    <display:column titleKey="paymentsSalary.typePay">
        <c:if test="${paymentsSalaryList.typePay=='half'}"><fmt:message key="paymentsSalary.half"/></c:if>
        <c:if test="${paymentsSalaryList.typePay=='complete'}"><fmt:message key="paymentsSalary.complete"/></c:if>
    </display:column>
    <display:column property="amount" titleKey="paymentsSalary.amount"/>
    
    <display:setProperty name="paging.banner.item_name" value="payments salary"/>
    <display:setProperty name="paging.banner.items_name" value="payments salaries"/>

    <display:setProperty name="export.excel.filename" value="PaymentsSalaryList.xls"/>
    <display:setProperty name="export.csv.filename" value="PaymentsSalaryList.csv"/>
    <display:setProperty name="export.pdf.filename" value="PaymentsSalaryList.pdf"/>
</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    highlightTableRows("paymentsSalaryList");
</script>